<template>
  <div>
      <p>{{arr}}</p>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['小花', '小明', '小可爱', '小王']
    }
  },
  /* eslint-disable */
  created () {
 const sj = Math.floor(Math.random() * this.arr.length)
 this.arr=this.arr.find((value,index) => index === sj)
  }
}
/* eslint-disable */
</script>

<style>

</style>
